@javax.persistence.NamedQueries({
    @javax.persistence.NamedQuery(name="user.myFriends", query="select f from User f"),
    @javax.persistence.NamedQuery(name="user.findByUserName", query="select u from User u where u.username = :username"),
    @javax.persistence.NamedQuery(name="photo.findByUserId", query="select p from Photo p join p.owner o where o.id = :userid"),
    @javax.persistence.NamedQuery(name="invitation.findByUserId", query="select i from Invitation i join i.inviter o where o.id = :userid"),
    @javax.persistence.NamedQuery(name="user.findUserbyRegEx", query="select u from User u where u.username LIKE :regEx")    
})
package phasebook.impl;